package com.yy.boot.service.impl;

import com.yy.boot.dao.UserDAO;
import com.yy.boot.entity.User;
import com.yy.boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 野马 on 2019/6/11.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDAO userDAO;

    @Override
    public List<User> selectAll() {
        List<User> list = userDAO.selectAll();
        return list;
    }
}
